import { Loader } from "@loaders/commons";
import { Mesh } from "./Mesh";
import { GLTFData } from "./CacheData";

export class GLTFLoader extends Loader {
  constructor(public url: string, public parsedCallback: Function = () => {}) {
    super();
    new GLTFData(url, (data) => {
      console.log(data);
      parsedCallback(data);
    });
  }
}
